package com.example.maomao.mapper;

import com.example.maomao.model.About;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface AboutMapper {

    @Insert("insert into about (name,phone,message) values (#{name},#{phone},#{message})")
    void insertIn(@Param("name") String name,@Param("phone") String phone,@Param("message" ) String message);
    @Select("select * from about")
    List<About> findAll();

    @Delete("delete from about where id=#{id}")
    void delete(@Param("id") int id);
}
